package com.hzjh.h5mall.ui.preview

import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.hzjh.base.ext.frame.JHBaseActivity
import com.hzjh.base.ext.frame.JHBaseVM
import com.hzjh.base.ext.route.RouteUrl
import com.hzjh.base.style.weight.GlideUtils.loadUrl
import com.hzjh.h5mall.databinding.ActivityPreviewImageBinding

@Route(path = RouteUrl.PREVIEW_ACTIVITY_IMAGE)
class PreviewImageActivity : JHBaseActivity<ActivityPreviewImageBinding,JHBaseVM>() {
    @JvmField
    @Autowired(name = RouteUrl.PARAMS_IMAGE_URL)
    var mImageUrl: String = "" //图片url

    override fun initData() {

    }

    override fun initView() {
        viewBinding.ivClose.setOnClickListener {
            finish()
        }
        viewBinding.ivPreImg.loadUrl(mImageUrl)
    }

    override fun initViewBinding(): ActivityPreviewImageBinding {
        return ActivityPreviewImageBinding.inflate(layoutInflater)
    }
}